home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Developer Toolbox 6.1
/
SGI Developer Toolbox 6.1 - Disc 4.iso
/
src
/
demos
/
GL
/
ideas
/
w.c
< prev
Wrap
C/C++ Source or Header
|
1994-08-01
|
5KB
|
228 lines
/*
* Copyright 1992, 1993, 1994, Silicon Graphics, Inc.
* All Rights Reserved.
*
* This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
* the contents of this file may not be disclosed to third parties, copied or
* duplicated in any form, in whole or in part, without the prior written
* permission of Silicon Graphics, Inc.
*
* RESTRICTED RIGHTS LEGEND:
* Use, duplication or disclosure by the Government is subject to restrictions
* as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
* and Computer Software clause at DFARS 252.227-7013, and/or in similar or
* successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
* rights reserved under the Copyright Laws of the United States.
*/
#include <gl.h>
float w_data[][2] = {
{2.400000, 12.899384-3.0},
{1.624615, 12.344969-3.0},
{1.513846, 11.790554-3.0},
{0.812308, 11.310061-3.0},
{1.292308, 10.570842-3.0},
{0.387692, 9.554415-3.0},
{1.163077, 8.907598-3.0},
{0.443077, 8.427105-3.0},
{1.236923, 7.983573-3.0},
{0.627692, 6.911705-3.0},
{1.218462, 6.874743-3.0},
{0.701538, 5.765914-3.0},
{1.089231, 5.858316-3.0},
{0.590769, 5.082136-3.0},
{0.904615, 5.636550-3.0},
{1.070769, 6.227926-3.0},
{1.716923, 6.708419-3.0},
{1.993846, 7.577002-3.0},
{2.603077, 7.780287-3.0},
{2.621538, 8.408625-3.0},
{3.138462, 8.630390-3.0},
{3.193846, 9.314168-3.0},
{4.080000, 10.995893-3.0},
{4.209231, 11.550308-3.0},
{4.689231, 12.954825-3.0},
{4.209231, 11.809035-3.0},
{4.615385, 12.030801-3.0},
{4.006154, 10.552361-3.0},
{4.633846, 10.995893-3.0},
{4.080000, 9.887064-3.0},
{4.966154, 9.850102-3.0},
{4.375385, 8.981520-3.0},
{5.409231, 8.889117-3.0},
{4.744616, 7.946612-3.0},
{5.704616, 7.687885-3.0},
{5.058462, 7.041068-3.0},
{5.889231, 6.135524-3.0},
{5.427692, 5.599589-3.0},
{5.501538, 5.026694-3.0},
{5.630769, 5.414784-3.0},
{5.741539, 5.987679-3.0},
{6.203077, 6.264887-3.0},
{6.572308, 7.281314-3.0},
{7.347692, 7.817248-3.0},
{7.255384, 9.221766-3.0},
{7.993846, 9.166325-3.0},
{7.458462, 11.032854-3.0},
{8.603077, 11.550308-3.0},
{7.403077, 11.975359-3.0},
{8.510769, 12.511293-3.0},
{7.070769, 12.326488-3.0},
{7.956923, 12.936345-3.0},
{6.590769, 12.308008-3.0},
{7.236923, 12.954825-3.0},
{6.000000, 12.012321-3.0},
{6.461538, 12.511293-3.0},
};
draw_w() {
bgntmesh();
v2f(w_data[0]);
v2f(w_data[1]);
v2f(w_data[2]);
v2f(w_data[3]);
v2f(w_data[4]);
v2f(w_data[5]);
v2f(w_data[6]);
v2f(w_data[7]);
v2f(w_data[8]);
v2f(w_data[9]);
v2f(w_data[10]);
v2f(w_data[11]);
v2f(w_data[12]);
v2f(w_data[13]);
endtmesh();
bgntmesh();
v2f(w_data[14]);
v2f(w_data[15]);
v2f(w_data[16]);
v2f(w_data[17]);
v2f(w_data[18]);
v2f(w_data[19]);
v2f(w_data[20]);
v2f(w_data[21]);
v2f(w_data[22]);
v2f(w_data[23]);
endtmesh();
bgntmesh();
v2f(w_data[24]);
v2f(w_data[25]);
v2f(w_data[26]);
v2f(w_data[27]);
v2f(w_data[28]);
v2f(w_data[29]);
v2f(w_data[30]);
v2f(w_data[31]);
v2f(w_data[32]);
v2f(w_data[33]);
v2f(w_data[34]);
v2f(w_data[35]);
v2f(w_data[36]);
v2f(w_data[37]);
v2f(w_data[38]);
endtmesh();
bgntmesh();
v2f(w_data[39]);
v2f(w_data[40]);
v2f(w_data[41]);
v2f(w_data[42]);
v2f(w_data[43]);
v2f(w_data[44]);
v2f(w_data[45]);
v2f(w_data[46]);
v2f(w_data[47]);
v2f(w_data[48]);
v2f(w_data[49]);
v2f(w_data[50]);
v2f(w_data[51]);
v2f(w_data[52]);
v2f(w_data[53]);
v2f(w_data[54]);
v2f(w_data[55]);
endtmesh();
bgnline();
v2f(w_data[0]);
v2f(w_data[2]);
v2f(w_data[4]);
v2f(w_data[6]);
v2f(w_data[8]);
v2f(w_data[10]);
v2f(w_data[12]);
v2f(w_data[13]);
v2f(w_data[11]);
v2f(w_data[9]);
v2f(w_data[7]);
v2f(w_data[5]);
v2f(w_data[3]);
v2f(w_data[1]);
v2f(w_data[0]);
endline();
bgnline();
v2f(w_data[14]);
v2f(w_data[16]);
v2f(w_data[18]);
v2f(w_data[20]);
v2f(w_data[22]);
v2f(w_data[23]);
v2f(w_data[21]);
v2f(w_data[19]);
v2f(w_data[17]);
v2f(w_data[15]);
v2f(w_data[14]);
endline();
bgnline();
v2f(w_data[24]);
v2f(w_data[26]);
v2f(w_data[28]);
v2f(w_data[30]);
v2f(w_data[32]);
v2f(w_data[34]);
v2f(w_data[36]);
v2f(w_data[38]);
v2f(w_data[37]);
v2f(w_data[35]);
v2f(w_data[33]);
v2f(w_data[31]);
v2f(w_data[29]);
v2f(w_data[27]);
v2f(w_data[25]);
v2f(w_data[24]);
endline();
bgnline();
v2f(w_data[39]);
v2f(w_data[41]);
v2f(w_data[43]);
v2f(w_data[45]);
v2f(w_data[47]);
v2f(w_data[49]);
v2f(w_data[51]);
v2f(w_data[53]);
v2f(w_data[55]);
v2f(w_data[54]);
v2f(w_data[52]);
v2f(w_data[50]);
v2f(w_data[48]);
v2f(w_data[46]);
v2f(w_data[44]);
v2f(w_data[42]);
v2f(w_data[40]);
v2f(w_data[39]);
endline();
}